package com.ustc.test.springmvc.service.impl;

import com.ustc.test.springmvc.dao.UserDao;
import com.ustc.test.springmvc.entity.User;
import com.ustc.test.springmvc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Haiyuan on 2015/4/29.
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    public void add(String userName) {
        User user = new User();
        user.setuName(userName);

        userDao.add(user);
    }
}
